package charstream;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;

public class Demo6 {
    public static void main(String[] args) throws IOException {
        BufferedWriter bw = new BufferedWriter(new FileWriter("Day13\\a.txt"));

        bw.write(97);
        bw.write("\r\n");
        char [] chars ={98,99,100,101,102};
        bw.write(chars);
        bw.write("\r\n");
        bw.write(chars,0,2);
        bw.write("\r\n");
        bw.write("黑马程序员");
        bw.write("\r\n");
        String s ="abcd";
        bw.write(s,0,4);

        bw.close();
    }
}
